SRCS = server_recv.cpp speed.cpp bandwith.cpp buffer.cpp controller.cpp node.cpp node_list.cpp packet_lost.cpp server.cpp
OBJS = server_recv.o speed.o bandwith.o buffer.o controller.o node.o node_list.o packet_lost.o server.o
HDRS = ../define/define.h
LIBUTILS = libtrans.a

CC = g++
CFLAGS = -c -g
INCLUDES = ../define
%.o : %.cpp
	$(CC) $(CFLAGS) -I$(INCLUDES) $< $(LDFLAGS) -o  $@

$(LIBUTILS): $(OBJS)
	ar -cr $(LIBUTILS) $(OBJS)
	ranlib $(LIBUTILS)

clean:
	rm -f *.o *.a
